﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace Cstudy.BLL
{
    public class Artcles
    {
        public bool AddArtcle(MODEL.artcles artcle)
        {
            return new DAL.Artcles().AddArtcle(artcle);
        }

        public bool EditArtcle(MODEL.artcles artcle)
        {
            return new DAL.Artcles().EditArtcle(artcle);
        }

        public DataSet SelectArtcleByID(int id,bool IsView)
        {
            if (IsView)
                new DAL.Artcles().ArtcleAddReadtime(id);
            return new DAL.Artcles().SelectArtcleByID(id);
        }



    }
}
